package com.rayson.yututu.manager.auth;

import cn.dev33.satoken.stp.StpLogic;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.stereotype.Component;

/**
 * @author: rayson
 * Description: sa-token的多账号认证体系
 * Date: 2025-01-19 01:12
 */
@Component
public class StpKit {
    public static final String SPACE_TYPE = "space";

    /**
     * SA-TOKEN默认原生会话对象，项目中目前没有用到
     */
    public static final StpLogic DEFAULT = StpUtil.stpLogic;

    /**
     * space会话对象，管理space表中所有账号的登录、权限验证
     */
    public static final StpLogic SPACE = new StpLogic(SPACE_TYPE);
}
